<!--
 * @Author: 卡卡 1071780426@qq.com
 * @Date: 2023-05-04 10:55:07
 * @LastEditors: 卡卡 1071780426@qq.com
 * @LastEditTime: 2023-05-04 10:55:18
 * @FilePath: \mould\src\components\uu.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
    <el-table-column :label="coloumnHeader.label" :prop="coloumnHeader.label">
        <template v-for="item in coloumnHeader.children">
            <tableColumn v-if="item.children && item.children.length" :key="item.id" :coloumn-header="item" />
            <el-table-column v-else :key="item.name" :label="item.label" :prop="item.prop" />
        </template>
    </el-table-column>
</template>
<script>
export default {
    name: 'TableColumn',
    props: {
        coloumnHeader: {
            type: Object,
            required: true
        }
    }
}
</script>
